<?php

class VAuthentification{

        public function __construct() {
        ?>
        
        
                    <h2 class="title">Identification</h2>
                        <div class="entry">
                        <?php
                            echo "<form action='index.php?do=connexion' method='post'> \n
                                        <label for='login'>Login :</label>  <input type='text' name='login' size='20' maxlength='40' value='";     
                                        if (isset($_POST['login'])) 
                                                echo htmlentities(trim($_POST['login']));

                                   echo "'/><br/> \n
                                        <label for='password'>Mot de passe :</label> <input type='password' name='password' size='20' maxlength='40' value='";
                                         if (isset($_POST['pass'])) 
                                                echo htmlentities(trim($_POST['pass']));         
                                   echo "' /><br/> \n
                                        </br> \n
                                        <input type='submit' name='connexion' size='10' value='Connexion'> \n
                                </form> \n";            
                        ?>
                        </div>
                   
          <?php
        
    }
}
?>